package com.book.settings.mapper;

import com.book.settings.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

public interface UserMapper {

    //添加用户
    public Integer addUser(
            User user
    );
    //根据act查找用户
    public User getUserByAct(String act);

    //动态模糊查询用户
    public List<User> getListUser(User user);
    public Integer getCountListUser(User user);

    //删除用户
    public Integer deleteUserById(User user);

    //修改用户
    public Integer updateUserById(User user);

    //查询所有的用户
    public List<User> getListAllUser(User user);
    public Integer getCountListAllUser(User user);

    //根据id查询用户
    public User searchUserById(String id);

}
